package gov.child.entities.vo;

import gov.child.entities.po.EComplaint;
import gov.child.entities.vo.annotation.Alias;

import java.util.Date;

/**
 * @author fzh
 * @since 2017/9/13
 */
public class Complaint {

    public static final Complaint EMPTY_COMPLAINT = new Complaint();

    public static Complaint parseFrom(EComplaint complaint) {
        return BeanTransformer.transform(Complaint.class, complaint);
    }

    public static EComplaint parseTo(Complaint complaint) {
        return BeanTransformer.transform(EComplaint.class, complaint);
    }

    // from complaint
    @Alias("id")
    private Integer complaintId;
    private Integer guideId;
    private Integer userId;
    private String tel;
    private String addr;
    private String title;
    private String content;
    private Date createTime;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getComplaintId() {
        return complaintId;
    }

    public void setComplaintId(Integer complaintId) {
        this.complaintId = complaintId;
    }

    public Integer getGuideId() {
        return guideId;
    }

    public void setGuideId(Integer guideId) {
        this.guideId = guideId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
